import axios from './http' 
const basUrl = '/mis-automatic-app'

// 分页查询退费列表
export function getTableData (data) {
    return axios.post(basUrl+'/refund/getTableData.json',data)
}

//获取退费详情
export function getRefundDetailById (id) {
    return axios.get(basUrl+'/refund/getRefundDetailById.json?id=' + id)
}

//获取退费详情
export function getPaymentRecord () {
    return axios.get(basUrl+'/refund/getPaymentRecord.json')
}

// 退费申请 - 上传图片
export function upload (data,config) {
    return axios.post(basUrl+'/api/uploadAndDown/file/upload.json',data,config)
}
// 退费申请 - 提交
export function saveRefund (data) {
    return axios.post(basUrl+'/refund/saveRefund.json',data)
}

// 根据taskId获取审批信息
export function getAuditDataByTaskId (id) {
    return axios.get(basUrl+'/refund/getAuditDataByTaskId.htm?taskId=' + id)
}
// 审批提交
export function audit (data) {
    return axios.post(basUrl+'/refund/audit.htm',data)
}
// 获取收款部门
export function getAllMisOrg (inputValue) {
    return axios.get(basUrl+'/refund/getAllMisOrg.json?inputValue=' + inputValue)
}